<template>
  <div ref="el" class="right">
    <h1>Right</h1>
  </div>
</template>

<script setup>
import { useResizeBox } from '@/utils/resizeBox.js';
import { ref } from 'vue';

const el = ref(null);
useResizeBox(el);
</script>

<style lang="scss" scoped>
.right {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: end;
  transform-origin: top right;
  width: 200px;
  height: 100%;
  background: red;
}
</style>